import Vue from 'vue'
import App from './App'
import store from "@/store/index.js"//vuex

// 插件
import uView from "@/plugins/uview-ui";
Vue.use(uView);


// 全局组件
import tabBar from "@/components/tabBar.vue"//底部菜单栏
Vue.component("tabBar",tabBar)

import wybLoading from '@/components/wyb-loading/wyb-loading.vue'//loading效果
Vue.component("wybLoading",wybLoading)

// eventBus
Vue.prototype.$eventBus = new Vue()//eventBus

// 图片路径
import {imgUrl} from "@/utils/imgUrl.js"
Vue.prototype.imgUrl = imgUrl

// 格式化日期
import {formDate} from "@/utils/formDate.js"
Vue.prototype.formDate = formDate

// 格式化时间
import {formTime} from "@/utils/formTime.js"
Vue.prototype.formTime = formTime

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
